<?php


	if (isset($jobsearch_cat)&&$jobsearch_cat!='')
	{
		$text .= " ".JText::_("for")." <strong class='highlight'>".$jobsearch_cat."</strong>";
		$is_filter = true;
	}
	if (isset($jobsearch_location)&&$jobsearch_location!='')
	{
		$text .= " ".JText::_("in")." <strong class='highlight'>".$jobsearch_location."</strong>";
		$is_filter = true;
	}

	if ((isset($jobsearch_salary_from)&&$jobsearch_salary_from!='') && (isset($jobsearch_salary_to)&&$jobsearch_salary_to!=''))
		$text .= " ".JText::_('with salary between')." <strong class='highlight'>".$jobsearch_salary_from."</strong> ".JText::_("and")." <strong class='highlight'>".$jobsearch_salary_to."</strong>";
	elseif (isset($jobsearch_salary_from)&&$jobsearch_salary_from!='')
		$text .= " ".JText::_("with salary from")." <strong class='highlight'>".$jobsearch_salary_from."</strong>";
	elseif (isset($jobsearch_salary_to)&&$jobsearch_salary_to!='')
		$text .= " ".JText::_("with salary to")." <strong class='highlight'>".$jobsearch_salary_to."</strong>";
	if ((isset($jobsearch_salary_from)&&$jobsearch_salary_from!='') || (isset($jobsearch_salary_to)&&$jobsearch_salary_to!=''))	
		$is_filter = true;			
	if ($jobsearch_keyword!=JText::_('Enter keyword...')&&$jobsearch_keyword!='')
	{
		$text .= " ".JText::_("matching")." <strong class='highlight'>".$jobsearch_keyword."</strong>";
		$is_filter = true;
	}
	if ($jobsearch_posted_date)
	{
		$text .= " ".JText::_("within")." <strong class='highlight'>".$jobsearch_posted_date."</strong> ".JText::_("day(s) ago");
		$is_filter = true;
	}
	if ($jobsearch_job_type){
		$text .= " ". JText::_("with")." <strong class='highlight'>".$jobsearch_job_type."</strong> ".JText::_('type').".";	
		$is_filter = true;
	}
	$text .= " ". sprintf(JText::_("Return %s job(s)"), $this->total_items);
	
	if ($jobsearch_author)
	{
		$temp_profile = getProfileFromUserIdList($jobsearch_author);
		$text .= JText::_('that belong to')." <strong>".$temp_profile."</strong> ";
		$is_filter = true;
	}
	
	if ($is_filter)
		echo "<span>".$text."</span>";
	else 
	{
		$text = sprintf(JText::_("Your filter return %s job(s)"), $this->total_items);
		echo "<span>".$text."</span>";
	}
		
?>